<%
DIRECTIVE SAFE_OUTPUT_OPEN;
%>
<meta charset="utf-8" />
<link href="${ctxPath}/static/css/common_style.css" rel="stylesheet">
<script src="${ctxPath}/static/js/common_fun.js"></script>
<script src="${ctxPath}/static/js/common.js"></script>
<script src="${ctxPath}/system/static/js/blog_list.js"></script>

<form class="form-search form-group">
    <div class="center">
	    <div class="input-group">
	    	<input type="text" name="search" class="form-control input-lg search-query" value="${name}" placeholder="单元搜索">
	    	<span class="input-group-addon btn_search">搜索</span>
        </div>
    </div>
</form>
<div id="blogListTableDiv" class="my-table">
	<table class="table table-striped table-hover my-table-head">
		<thead>
			<tr style="height:40px;">
				<th class="no-border" style="width: 60px;"><input type="checkbox" name="selectAll" style="margin-right:4px;">全选</th>
				<th>ID</th>				
				<th>
					<span>标题</span>
					<div class="opt">
					    <a href="#" id="add_btn" data-toggle="modal" data-target="#adddy-modal"><img src="static/images/btn_add_icon.png" alt="添加数据" /></a>
						<a href="#" id="remove_btn"><img src="static/images/btn_remove_icon.png" alt="删除数据"  /></a>
					</div>
				</th>
			</tr>
		</thead>
	</table>
	<div class="scroll-pane">
		<table class="table table-striped table-hover my-table-body">
			<tbody>
				<%for(blog in pageList){%>
				 <tr>
					<td class="text-center no-border"><input type="checkbox" name="blog.id" value="${blog.id}"></td>
					<td>${blog.id}</td>
					<td>${blog.title}</td>					
				</tr>
				<%}%>
			</tbody>
		</table>
	</div>
	<table class="table table-striped table-hover my-table-foot">
		<tfoot>
			<tr style="height:40px;">
				<td>
					<!-- 分页条 -->
					<% include("/common/view/paging.html"){} %>
				</td>
			</tr>
		</tfoot>
	</table>
</div>
<%
DIRECTIVE SAFE_OUTPUT_CLOSE;
%>